/**
 * 公用参数
 */
var name=''//就诊人
var code=""
var pcode=""
var hostcode=""

/**
 * 默认加载
 * @type {{init: Window.process.init, public: Window.process.public}}
 */
window.process = {
    init() {
        this.initData();
        this.public();
    },
    initData() {
        var paramsData = getUrlParamsCode();
        name= paramsData['name'];
        code= paramsData['code'];
        pcode= paramsData['pcode'];
        hostcode= paramsData['hostcode'];
        if(name){
            $('#name').text(name);
            this.load()
        }
        

    },
    load(){
        let api='/appRegsterMarks/find'
        let data={
            hostcode:hostcode,
            deptcode1:code,
            deptcode2:pcode,
            doctorcode:'',
            begindate:'',
            enddate:''
        }
        postAjax(api,data,this.callbackLoad) 
    },
    callbackLoad(data){

    },
    public() {
        //选择支付方式
        $('.m2 .content .item').click(function () {
            $(this).addClass('on').siblings().removeClass('on');
        });



    }
};

/**
 * 启动方法执行
 */
process.init();



